package com.petsystem.system.domain.vo;

import com.alibaba.excel.annotation.ExcelIgnoreUnannotated;
import com.alibaba.excel.annotation.ExcelProperty;
import com.petsystem.common.annotation.ExcelDictFormat;
import com.petsystem.common.convert.ExcelDictConvert;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;


/**
 * 宠物信息视图对象 t_pet
 *
 * @author petsystem
 * @date 2022-02-26
 */
@Data
@ApiModel("宠物信息视图对象")
@ExcelIgnoreUnannotated
public class TPetVo {

	private static final long serialVersionUID = 1L;

    /**
     * 宠物id
     */
	@ExcelProperty(value = "宠物id")
	@ApiModelProperty("宠物id")
	private Long id;

    /**
     * 宠物发布人
     */
	@ExcelProperty(value = "宠物发布人")
	@ApiModelProperty("宠物发布人")
	private Long userId;

    /**
     * 宠物发布人
     */
    @ExcelProperty(value = "宠物发布人名称")
    @ApiModelProperty("宠物发布人")
    private String userName;

    /**
     * 宠物名称
     */
	@ExcelProperty(value = "宠物名称")
	@ApiModelProperty("宠物名称")
	private String name;

    /**
     * 宠物性别（0公  1母）
     */
    @ExcelProperty(value = "宠物性别", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "t_pet_gender")
	@ApiModelProperty("宠物性别（0公  1母）")
	private String gender;

    /**
     * 宠物分类
     */
    @ExcelProperty(value = "宠物分类", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "t_pet_type")
	@ApiModelProperty("宠物分类")
	private String type;

    /**
     * 宠物介绍
     */
	@ExcelProperty(value = "宠物介绍")
	@ApiModelProperty("宠物介绍")
	private String introduce;

    /**
     * 宠物图片
     */
	@ExcelProperty(value = "宠物图片")
	@ApiModelProperty("宠物图片")
	private String pic;

    /**
     * 领养状态（0未领养 1已领养）
     */
    @ExcelProperty(value = "领养状态", converter = ExcelDictConvert.class)
    @ExcelDictFormat(dictType = "t_pet_status")
	@ApiModelProperty("领养状态（0未领养 1已领养）")
	private String status;

    /**
     * 备注
     */
	@ExcelProperty(value = "备注")
	@ApiModelProperty("备注")
	private String remark;

    /**
     * 价格
     */
    @ExcelProperty(value = "价格")
    @ApiModelProperty("价格")
    private Double price;
}
